<!--
 * @Author: 宋杰
 * @Date: 2021-03-16 21:47:02
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-03-16 22:40:56
 * @Description: 一家十一口(猜一字)右下
-->
<template>
  <!-- 热搜问题 -->
  <div class="con_left2_1">
    <!-- 标签 -->
    <div class="titleBox">
      <div>当日热搜问题</div>
    </div>
    <div class="Hotsearch">
      <div class="Hotsearch_top">
        <span>热搜问题</span>
        <span>只取排名前五其余为其他</span>
      </div>
      <div class="Hotsearch_list">
        <div v-for="(item, index) in HotsearchList" :key="index">
          <div>{{ item.text }}</div>
          <div>{{ item.hot }}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
//import {} from '';
export default {
  name: "",
  data() {
    return {
      // 热搜问题
      HotsearchList: [
        { id: 0, text: "如何还款？", hot: "321" },
        { id: 1, text: "我的当期需还金额如何计算？", hot: "521" },
        {
          id: 2,
          text: "消费或借款后，多久开始还款？",
          hot: "221",
        },
        { id: 3, text: "怎么查看绑定的还款银行卡", hot: "121" },
        { id: 4, text: "怎么查看我还款是否成功", hot: "100" },
        { id: 5, text: "其他", hot: "21" },
      ],
    };
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  //方法集合
  methods: {},
};
</script>
<style lang="scss" scoped>
.con_left2_1 {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  > :nth-child(2) {
    flex: 1;
    width: 100%;
  }
}
.titleBox {
  font-family: PingFangSC-Regular;
  font-size: 0.3rem;
  color: #75bdff;
  letter-spacing: 0.015rem;
  text-align: left;
  line-height: 0.5rem;
  height: 0.5rem;
  width: 100%;
  padding-left: 1.5rem;
  background: url("../../assets/heng2.png") no-repeat;
  background-size: 6rem 40%;
  background-position: right 0 bottom 0;
  margin-bottom: 0.05rem;
}
// 热搜问题
.Hotsearch {
  // // border: 1px solid #00e2ff;
  // width: 100%;
  // height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.2rem 0 0.2rem;
  .Hotsearch_top {
    width: 100%;
    height: 0.5rem;
    line-height: 0.5rem;
    display: flex;
    justify-content: space-between;

    font-family: PingFangSC-Regular;
    font-size: 0.2rem;
    color: #129bff;
    letter-spacing: 0;
    text-align: right;
    background-color: #062141;
    padding: 0 0.2rem;
  }
  .Hotsearch_list {
    // border: 1px solid #00e2ff;
    flex: 1;
    width: 100%;
    // height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    > div {
      // border: 1px solid #00e2ff;
      flex: 1;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-family: PingFangSC-Regular;
      font-size: 0.25rem;
      color: #31fbfb;
      letter-spacing: 0;
      line-height: 0.4rem;
      > :nth-child(2) {
        margin-right: 0.4rem;
      }
    }
  }
}
</style>
